package org.jeecg.modules.fund.service;

import org.jeecg.modules.fund.entity.FundSubscriptionRate;
import org.jeecg.modules.fund.entity.Fund;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 基金基本信息
 * @Author: jeecg-boot
 * @Date:   2024-08-23
 * @Version: V1.0
 */
public interface IFundService extends IService<Fund> {

	/**
	 * 添加一对多
	 *
	 * @param fund
	 * @param fundSubscriptionRateList
	 */
	public void saveMain(Fund fund,List<FundSubscriptionRate> fundSubscriptionRateList) ;
	
	/**
	 * 修改一对多
	 *
   * @param fund
   * @param fundSubscriptionRateList
	 */
	public void updateMain(Fund fund,List<FundSubscriptionRate> fundSubscriptionRateList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	/**
	 * 资金购买
	 */
	public Fund getByIdLock(String fundId);
}
